<?php

require_once("Joob/Plugins/Event/Standard.php");
require_once("Joob/Plugins/Manager.php");

class Joob_Plugins_Event_Notifier {
	
	/**
	 * Notify all plugins about the upcoming event
	 * @param unknown_type $eventName the event name
	 * @param unknown_type $eventData the event data
	 */
	public function notify($eventName, $eventData)	{
		$event = new Joob_Plugins_Event_Standard($eventName, $eventData);
		$plgManager = Joob_Plugins_Manager::getInstance();
		foreach ($plgManager->getPlugins() as $plg) {
			$plg->onEvent($event);
		}
	}
}

?>